package com.rk.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rk.hosp.model.order.OrderInfo;
import com.rk.hosp.vo.order.OrderCountQueryVo;
import com.rk.hosp.vo.order.OrderQueryVo;
import java.util.Map;

/**
 * @author :Rk.
 * @date : 2022/12/1
 */
public interface OrderInfoService extends IService<OrderInfo> {

    Long saveOrder(String scheduleId, Long patientId);

    /**
     * 通过订单id来获取订单信息
     * @param orderId
     * @return
     */
    OrderInfo getOrder(String orderId);


    /**
     * 分页列表
     */
    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    /**
     * 取消订单
     * @param orderId
     */
    Boolean cancelOrder(Long orderId);

    /**
     * 提醒就诊
     */
    void patientTips();

    void paymentTips();


    /**
     * 订单统计
     */
    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);


}
